<?php

abstract class MysqlCliActivity extends SyncActivity {

    public function __construct($activity) {
   		parent::__construct($activity);       
    }
    
    protected function prepare() {
    	if(!parent::prepare()) {
    		return false;
    	}
    	
		$output = $this->activity['outputs'][0];
    	$destSystem	= ResourceService::getInstance()->getStorageSystem($output['system_id']);
    	
    	$this->cmd = MYSQL_CLIENT . " -h{$destSystem['host_name']} -u{$destSystem['user_name']} -p{$destSystem['password']} {$destSystem['namespace']} -e \"{$this->cmd}\"";
		return true;
    }
    
    protected function prepareInputs() {
    	return true;
    }
    
	protected function prepareOutputs() {
		return true;
	}
}
